setInterval(() => {
  let create_time = Math.round(
    new Date("2020-11-11 00:00:00").getTime() / 1000
  ); //在此行修改建站时间
  let timestamp = Math.round(
    (new Date().getTime() + 8 * 60 * 60 * 1000) / 1000
  );
  //上面为UTC+8,若发现不同步可以改为以下这行
  // let timestamp = Math.round((new Date().getTime()) / 1000);
  let second = timestamp - create_time;
  let time = new Array(0, 0, 0, 0, 0);
  if (second >= 365 * 24 * 3600) {
    time[0] = parseInt(second / (365 * 24 * 3600));
    second %= 365 * 24 * 3600;
  }
  if (second >= 24 * 3600) {
    time[1] = parseInt(second / (24 * 3600));
    second %= 24 * 3600;
  }
  if (second >= 3600) {
    time[2] = parseInt(second / 3600);
    second %= 3600;
  }
  if (second >= 60) {
    time[3] = parseInt(second / 60);
    second %= 60;
  }
  if (second > 0) {
    time[4] = second;
  }
  let year = "";
  if (time[0] > 0) {
    year = time[0] + " 年 ";
  } else {
    year = "";
  }
  currentTimeHtml =
    "网站已运行 " +
    year +
    time[1] +
    " 天 " +
    time[2] +
    " 时 " +
    time[3] +
    " 分 " +
    time[4] +
    " 秒";
  document.getElementById("runTime").innerHTML = currentTimeHtml;
}, 1000);
